import BaseService from "../BaseService";

class FileAttachmentTypeService extends BaseService {
  querryAttByCodes(params) {
    return this.postAction(this.getModulePath() + `/querryAttByCodes`, params);
  }

  getUploadDatas(params) {
    return this.getAction(this.getModulePath() + `/getUploadDatas`, params);
  }

  /**
   * 描述:获取host地址
   * @returns {string}
   */
  getBaseUrl() {
    return this.serviceConfig.getBaseUrl("oauth");
  }
  /**
   * 描述:获取模块地址
   * @returns {string}
   */
  getModulePath() {
    return "/publics/attachmentType";
  }
}

export default new FileAttachmentTypeService();
